﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Teriri.File.Client.Maui.Model
{
    /// <summary>
    /// 文件处理进度信息
    /// </summary>
    public class FileProcessInfo
    {
        public string Id { set; get; }

        public string Name { set; get; }

        public DateTime StartTime { set; get; }

        public DateTime? EndTime { set; get; }

        public FileProcessType ProcessType { set; get; }

        public List<long> Speed { set; get; } = new List<long>();

        public List<float> Process { set; get; } = new List<float>();
    }

    public enum FileProcessType
    {
        /// <summary>
        /// 上传
        /// </summary>
        Upload,

        /// <summary>
        /// 下载
        /// </summary>
        Download
    }
}
